﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityPet
{
    /// <summary>
    /// 护理方式（上门护理，到店护理）
    /// </summary>
    public class Pet_CareWay:MessageChange
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [Required]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 护理方式 1.上门护理 2.到店护理
        /// </summary>
        [Required]
        public bool Service { get; set; }

        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(20)]
        [Required]
        public string? Phone { get; set; }

        /// <summary>
        /// 上门地址
        /// </summary>
        [StringLength(50)]
        public string? Address { get; set; }

        /// <summary>
        /// 预约时间
        /// </summary>
        [Required]
        public DateTime CareTime { get; set; }
    }
}
